<style type="text/css">
    #schedulepicker {
        padding-top: 7px;
    }
</style>
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label for="community_code" class="control-label col-xs-12 col-sm-2">{:__('Community')}:</label>
        <div class="col-xs-12 col-sm-6">
            <select id="community_code" data-rule="required" class="form-control selectpicker show-tick"
                name="row[community_code]" data-live-search="true">
                {foreach name="community" item="vo"}
                <option value="{$vo.code}" {in name="vo.code" value="$row.community_code" }selected{/in}>{$vo.name}
                    </option> {/foreach} </select> </div> </div> <div class="form-group">
                  
        </div>

        <div class="form-group">

            <label for="companyid" class="control-label col-xs-12 col-sm-2">{:__('companyId')}:</label>

            <div class="col-xs-12 col-sm-6">
                <select id="companyid" data-rule="required" class="form-control selectpicker show-tick"
                    name="row[companyid]" data-live-search="true">

                    {foreach name="company" item="vo"}

                    <option value="{$vo.id}" {in name="vo.companyname" value="$row.companyid"
                        }selected{/in}>{$vo.companyname} </option> {/foreach} </select> </div> </div> <div
                        class="form-group">
                        <label for="name" class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
                        <div class="col-xs-12 col-sm-6">
                            <input type="text" class="form-control" id="name" name="row[name]" value="{$row.name}"
                                data-rule="required" />
                        </div>
            </div>
            <div class="form-group">
                <label for="identity_id" class="control-label col-xs-12 col-sm-2">{:__('Identity')}:</label>
                <div class="col-xs-12 col-sm-6">
                    <input type="text" class="form-control" id="identity_id" name="row[identity_id]"
                        value="{$row.identity_id}" data-rule="IDcard" />
                </div>
            </div>
            <div class="form-group">
                <label for="birth" class="control-label col-xs-12 col-sm-2">{:__('Birth')}:</label>
                <div class="col-xs-12 col-sm-6">
                    <input type="text" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" id="birth"
                        name="row[birth]" value="{$row.birth|datetime=" Y-m-d"}" data-rule="date" />
                </div>
            </div>
            <div class="form-group">
                <label for="tel" class="control-label col-xs-12 col-sm-2">{:__('Tel')}:</label>
                <div class="col-xs-12 col-sm-6">
                    <input type="text" class="form-control" id="tel" name="row[tel]" value="{$row.tel}"
                        data-rule="mobile" />
                </div>
            </div>
            <div class="form-group">
                <label for="occupation" class="control-label col-xs-12 col-sm-2">{:__('Occupation')}:</label>
                <div class="col-xs-12 col-sm-6">
                    <input type="text" class="form-control" id="occupation" name="row[occupation]"
                        value="{$row.occupation}" />
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Gender')}:</label>
                <div class="col-xs-12 col-sm-8">
                    {:build_radios('row[gender]', ['1'=>__('Man'), '0'=>__('Women')],$row['gender'])}
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('OwnerType')}:</label>
                <div class="col-xs-12 col-sm-8">
                    {:build_radios('row[owner_type]', ['1'=>__('Owner'), '2'=>__('Member'),
                    '3'=>__('Lessee')],$row['owner_type'])}
                </div>
            </div>
            <div class="form-group">
                <label for="c-thumb" class="control-label col-xs-12 col-sm-2">{:__('Photo')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <div class="form-inline">
                        <input id="c-thumb" class="form-control" size="50" name="row[photo]" type="hidden"
                            value="{$row.photo}">
                        <span><button id="plupload-image" class="btn btn-danger plupload" data-input-id="c-thumb"
                                data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"
                                data-preview-id="p-thumb"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                        <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose"
                                data-multiple="false" data-mimetype="image/*" data-input-id="c-thumb"><i
                                    class="fa fa-list-ul"></i> {:__('Choose')}</button></span>
                        <ul class="row list-inline plupload-preview" id="p-thumb"></ul>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label for="remark" class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input type="text" class="form-control" id="remark" name="row[remark]" value="{$row.remark}" />
                </div>
            </div>
            <div class="form-group hide layer-footer">
                <label class="control-label col-xs-12 col-sm-2"></label>
                <div class="col-xs-12 col-sm-8">
                    <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
                    <button type="button" class="btn btn-default btn-embossed"
                        onClick="closeLayerWin(this)">{:__('Close')}</button>
                </div>
            </div>

</form>
<input type="hidden" name="house_id" id="house_id" value="{$row.house_code}" />